package com.hyb.service;

import com.hyb.Vo.StaffRoleVo;
import com.hyb.entity.Role;
import com.hyb.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyb.page.PageReq;
import com.hyb.page.VoQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  员工Service接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
public interface StaffService extends IService<Staff> {

    Staff getStaffBuyStaffEmail(String staffEmail);
    void updateStaff(Staff staff);
    List<Map<String,Object>> getMemuListByStaffEmail(String staffEmail);
    PageReq getAllStaffs(int current, int limit);

    PageReq getStaffsByWarpper(int current, int limit ,String staffName,String role);

    void createStaff(StaffRoleVo staff);

    StaffRoleVo getStaffAndRoleBystaffId(int staffId);

    void updateStaff(StaffRoleVo staffRoleVo);

    List<Staff> getAllAccountManager();
}
